const  express=require('express')

const  router=express.Router()


router.get('/api/home',(req,res)=>{
    res.send({name:'home',age:100,type:'get'})
})

router.post('/api/news',(req,res)=>{
    res.send({name:'news',age:100,type:'post'})
})





module.exports=router

